﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xys.Remp.Thallo.Strategy;

namespace Xys.Remp.Thallo
{
    public class DynamicOperationCachedableAttribute : OperationCachedableAttribute
    {
        public DynamicOperationCachedableAttribute(string serviceName,string operationName)
        {
            this.DependencyServiceName = serviceName;
            DependencyOperationName = operationName;
        }
        
        public string DependencyServiceName
        {
            get;
            set;
        }

        public string DependencyOperationName
        {
            get;
            set;
        }

        public string[] DependencyParams
        {
            get;
            set;
        }

        public override Strategy.IStrategy GetStrategy() {
            return DynamicStrategy.Current;
        }
    }
}
